<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>记一次php5.3.10安装 - (power up)</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="Kevin Jiang" /><meta name="description" content="安装环境 1 2 CentOS 6.6 x64 php 5.3.10 安装编译工具 1 yum install -y gcc gcc-c&#43;&#43; 安装mysql 1 2 3 yum install -y mysql mysql-devel #如果是64位系统，执行 ln -s /usr/lib64/mysql/* /usr/lib/ 安装依赖 1 2 3 4 yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel" /><meta name="keywords" content="KevinJiang, AI大模型, AI落地, 全栈工程师, Java, Spring Boot" />






<meta name="generator" content="Hugo 0.84.4 with theme even" />


<link rel="canonical" href="http://kevinjiang.info/post/php/%E8%AE%B0%E4%B8%80%E6%AC%A1php5-3-10%E5%AE%89%E8%A3%85/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.78f8f17bab244b9ee62ad16480c9584d5fc2db06ae20681d1ca225cefd80767c.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="记一次php5.3.10安装" />
<meta property="og:description" content="安装环境 1 2 CentOS 6.6 x64 php 5.3.10 安装编译工具 1 yum install -y gcc gcc-c&#43;&#43; 安装mysql 1 2 3 yum install -y mysql mysql-devel #如果是64位系统，执行 ln -s /usr/lib64/mysql/* /usr/lib/ 安装依赖 1 2 3 4 yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://kevinjiang.info/post/php/%E8%AE%B0%E4%B8%80%E6%AC%A1php5-3-10%E5%AE%89%E8%A3%85/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2017-06-27T14:23:16+00:00" />
<meta property="article:modified_time" content="2017-06-27T14:23:16+00:00" />

<meta itemprop="name" content="记一次php5.3.10安装">
<meta itemprop="description" content="安装环境 1 2 CentOS 6.6 x64 php 5.3.10 安装编译工具 1 yum install -y gcc gcc-c&#43;&#43; 安装mysql 1 2 3 yum install -y mysql mysql-devel #如果是64位系统，执行 ln -s /usr/lib64/mysql/* /usr/lib/ 安装依赖 1 2 3 4 yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel"><meta itemprop="datePublished" content="2017-06-27T14:23:16+00:00" />
<meta itemprop="dateModified" content="2017-06-27T14:23:16+00:00" />
<meta itemprop="wordCount" content="719">
<meta itemprop="keywords" content="php,CentOS," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="记一次php5.3.10安装"/>
<meta name="twitter:description" content="安装环境 1 2 CentOS 6.6 x64 php 5.3.10 安装编译工具 1 yum install -y gcc gcc-c&#43;&#43; 安装mysql 1 2 3 yum install -y mysql mysql-devel #如果是64位系统，执行 ln -s /usr/lib64/mysql/* /usr/lib/ 安装依赖 1 2 3 4 yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">(Power up)</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a><a href="/resume/">
        <li class="mobile-menu-item">简历</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">(Power up)</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/resume/">简历</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">记一次php5.3.10安装</h1>

      <div class="post-meta">
        <span class="post-time"> 2017-06-27 </span>
        
          <span class="more-meta"> 约 719 字 </span>
          <span class="more-meta"> 预计阅读 2 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li><a href="#安装环境">安装环境</a></li>
    <li><a href="#安装编译工具">安装编译工具</a></li>
    <li><a href="#安装mysql">安装mysql</a></li>
    <li><a href="#安装依赖">安装依赖</a></li>
    <li><a href="#安装php">安装php</a></li>
    <li><a href="#启动脚本">启动脚本</a></li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h2 id="安装环境">安装环境</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-txt" data-lang="txt">CentOS 6.6 x64
php 5.3.10
</code></pre></td></tr></table>
</div>
</div><h2 id="安装编译工具">安装编译工具</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">yum install -y gcc gcc-c++
</code></pre></td></tr></table>
</div>
</div><!-- raw HTML omitted -->
<h2 id="安装mysql">安装mysql</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">yum install -y mysql mysql-devel
<span class="c1">#如果是64位系统，执行</span>
ln -s /usr/lib64/mysql/* /usr/lib/
</code></pre></td></tr></table>
</div>
</div><h2 id="安装依赖">安装依赖</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-turbo-devel libpng-devel freetype-devel openldap-devel cyrus-sasl-ldap libtool libtool-ltdl-devel
<span class="c1">#如果是64位系统，执行</span>
ln -s /usr/lib64/libldap* /usr/lib/
ln -s /usr/lib64/mysql/* /usr/lib/
</code></pre></td></tr></table>
</div>
</div><p>openldap-devel 这个在我工作的项目当中使用到了，如果不需要这个可以不要安装这个</p>
<h2 id="安装php">安装php</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">curl -o php-5.3.10.tar.gz <span class="s1">&#39;http://museum.php.net/php5/php-5.3.10.tar.gz&#39;</span>
tar xzvf php-5.3.10.tar.gz
<span class="nb">cd</span> php-5.3.10
./configure  --prefix<span class="o">=</span>/usr/local/php-5.3.10 --with-config-file-path<span class="o">=</span>/usr/local/php-5.3.10/etc --with-mysql --with-mysqli<span class="o">=</span>mysqlnd --with-pdo-mysql --with-iconv-dir<span class="o">=</span>/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
make
make install
ln -s /usr/local/php-5.3.10 /usr/local/php
</code></pre></td></tr></table>
</div>
</div><h2 id="启动脚本">启动脚本</h2>
<p>使用下面的脚本需要修改<code>php-fpm.conf</code>，把pid那行的注释去掉</p>
<p>创建文件<code>/etc/init.d/php-fpm</code>，并且设置为可执行<code>chmod +x /etc/init.d/php-fpm</code></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">  1
</span><span class="lnt">  2
</span><span class="lnt">  3
</span><span class="lnt">  4
</span><span class="lnt">  5
</span><span class="lnt">  6
</span><span class="lnt">  7
</span><span class="lnt">  8
</span><span class="lnt">  9
</span><span class="lnt"> 10
</span><span class="lnt"> 11
</span><span class="lnt"> 12
</span><span class="lnt"> 13
</span><span class="lnt"> 14
</span><span class="lnt"> 15
</span><span class="lnt"> 16
</span><span class="lnt"> 17
</span><span class="lnt"> 18
</span><span class="lnt"> 19
</span><span class="lnt"> 20
</span><span class="lnt"> 21
</span><span class="lnt"> 22
</span><span class="lnt"> 23
</span><span class="lnt"> 24
</span><span class="lnt"> 25
</span><span class="lnt"> 26
</span><span class="lnt"> 27
</span><span class="lnt"> 28
</span><span class="lnt"> 29
</span><span class="lnt"> 30
</span><span class="lnt"> 31
</span><span class="lnt"> 32
</span><span class="lnt"> 33
</span><span class="lnt"> 34
</span><span class="lnt"> 35
</span><span class="lnt"> 36
</span><span class="lnt"> 37
</span><span class="lnt"> 38
</span><span class="lnt"> 39
</span><span class="lnt"> 40
</span><span class="lnt"> 41
</span><span class="lnt"> 42
</span><span class="lnt"> 43
</span><span class="lnt"> 44
</span><span class="lnt"> 45
</span><span class="lnt"> 46
</span><span class="lnt"> 47
</span><span class="lnt"> 48
</span><span class="lnt"> 49
</span><span class="lnt"> 50
</span><span class="lnt"> 51
</span><span class="lnt"> 52
</span><span class="lnt"> 53
</span><span class="lnt"> 54
</span><span class="lnt"> 55
</span><span class="lnt"> 56
</span><span class="lnt"> 57
</span><span class="lnt"> 58
</span><span class="lnt"> 59
</span><span class="lnt"> 60
</span><span class="lnt"> 61
</span><span class="lnt"> 62
</span><span class="lnt"> 63
</span><span class="lnt"> 64
</span><span class="lnt"> 65
</span><span class="lnt"> 66
</span><span class="lnt"> 67
</span><span class="lnt"> 68
</span><span class="lnt"> 69
</span><span class="lnt"> 70
</span><span class="lnt"> 71
</span><span class="lnt"> 72
</span><span class="lnt"> 73
</span><span class="lnt"> 74
</span><span class="lnt"> 75
</span><span class="lnt"> 76
</span><span class="lnt"> 77
</span><span class="lnt"> 78
</span><span class="lnt"> 79
</span><span class="lnt"> 80
</span><span class="lnt"> 81
</span><span class="lnt"> 82
</span><span class="lnt"> 83
</span><span class="lnt"> 84
</span><span class="lnt"> 85
</span><span class="lnt"> 86
</span><span class="lnt"> 87
</span><span class="lnt"> 88
</span><span class="lnt"> 89
</span><span class="lnt"> 90
</span><span class="lnt"> 91
</span><span class="lnt"> 92
</span><span class="lnt"> 93
</span><span class="lnt"> 94
</span><span class="lnt"> 95
</span><span class="lnt"> 96
</span><span class="lnt"> 97
</span><span class="lnt"> 98
</span><span class="lnt"> 99
</span><span class="lnt">100
</span><span class="lnt">101
</span><span class="lnt">102
</span><span class="lnt">103
</span><span class="lnt">104
</span><span class="lnt">105
</span><span class="lnt">106
</span><span class="lnt">107
</span><span class="lnt">108
</span><span class="lnt">109
</span><span class="lnt">110
</span><span class="lnt">111
</span><span class="lnt">112
</span><span class="lnt">113
</span><span class="lnt">114
</span><span class="lnt">115
</span><span class="lnt">116
</span><span class="lnt">117
</span><span class="lnt">118
</span><span class="lnt">119
</span><span class="lnt">120
</span><span class="lnt">121
</span><span class="lnt">122
</span><span class="lnt">123
</span><span class="lnt">124
</span><span class="lnt">125
</span><span class="lnt">126
</span><span class="lnt">127
</span><span class="lnt">128
</span><span class="lnt">129
</span><span class="lnt">130
</span><span class="lnt">131
</span><span class="lnt">132
</span><span class="lnt">133
</span><span class="lnt">134
</span><span class="lnt">135
</span><span class="lnt">136
</span><span class="lnt">137
</span><span class="lnt">138
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash"><span class="cp">#! /bin/sh
</span><span class="cp"></span>
<span class="c1">### BEGIN INIT INFO</span>
<span class="c1"># Provides:          php-fpm</span>
<span class="c1"># Required-Start:    $remote_fs $network</span>
<span class="c1"># Required-Stop:     $remote_fs $network</span>
<span class="c1"># Default-Start:     2 3 4 5</span>
<span class="c1"># Default-Stop:      0 1 6</span>
<span class="c1"># Short-Description: starts php-fpm</span>
<span class="c1"># Description:       starts the PHP FastCGI Process Manager daemon</span>
<span class="c1">### END INIT INFO</span>

<span class="nv">prefix</span><span class="o">=</span>/usr/local/php
<span class="nv">exec_prefix</span><span class="o">=</span><span class="si">${</span><span class="nv">prefix</span><span class="si">}</span>

<span class="nv">php_fpm_BIN</span><span class="o">=</span><span class="si">${</span><span class="nv">exec_prefix</span><span class="si">}</span>/sbin/php-fpm
<span class="nv">php_fpm_CONF</span><span class="o">=</span><span class="si">${</span><span class="nv">prefix</span><span class="si">}</span>/etc/php-fpm.conf
<span class="nv">php_fpm_PID</span><span class="o">=</span><span class="si">${</span><span class="nv">prefix</span><span class="si">}</span>/var/run/php-fpm.pid


<span class="nv">php_opts</span><span class="o">=</span><span class="s2">&#34;--fpm-config </span><span class="nv">$php_fpm_CONF</span><span class="s2">&#34;</span>


wait_for_pid <span class="o">()</span> <span class="o">{</span>
	<span class="nv">try</span><span class="o">=</span><span class="m">0</span>

	<span class="k">while</span> <span class="nb">test</span> <span class="nv">$try</span> -lt <span class="m">35</span> <span class="p">;</span> <span class="k">do</span>

		<span class="k">case</span> <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> in
			<span class="s1">&#39;created&#39;</span><span class="o">)</span>
			<span class="k">if</span> <span class="o">[</span> -f <span class="s2">&#34;</span><span class="nv">$2</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
				<span class="nv">try</span><span class="o">=</span><span class="s1">&#39;&#39;</span>
				<span class="nb">break</span>
			<span class="k">fi</span>
			<span class="p">;;</span>

			<span class="s1">&#39;removed&#39;</span><span class="o">)</span>
			<span class="k">if</span> <span class="o">[</span> ! -f <span class="s2">&#34;</span><span class="nv">$2</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
				<span class="nv">try</span><span class="o">=</span><span class="s1">&#39;&#39;</span>
				<span class="nb">break</span>
			<span class="k">fi</span>
			<span class="p">;;</span>
		<span class="k">esac</span>

		<span class="nb">echo</span> -n .
		<span class="nv">try</span><span class="o">=</span><span class="sb">`</span>expr <span class="nv">$try</span> + 1<span class="sb">`</span>
		sleep <span class="m">1</span>

	<span class="k">done</span>

<span class="o">}</span>

<span class="k">case</span> <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> in
	start<span class="o">)</span>
		<span class="nb">echo</span> -n <span class="s2">&#34;Starting php-fpm &#34;</span>

		<span class="nv">$php_fpm_BIN</span> <span class="nv">$php_opts</span>

		<span class="k">if</span> <span class="o">[</span> <span class="s2">&#34;</span><span class="nv">$?</span><span class="s2">&#34;</span> !<span class="o">=</span> <span class="m">0</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34; failed&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">fi</span>

		wait_for_pid created <span class="nv">$php_fpm_PID</span>

		<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$try</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34; failed&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">else</span>
			<span class="nb">echo</span> <span class="s2">&#34; done&#34;</span>
		<span class="k">fi</span>
	<span class="p">;;</span>

	stop<span class="o">)</span>
		<span class="nb">echo</span> -n <span class="s2">&#34;Gracefully shutting down php-fpm &#34;</span>

		<span class="k">if</span> <span class="o">[</span> ! -r <span class="nv">$php_fpm_PID</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34;warning, no pid file found - php-fpm is not running ?&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">fi</span>

		<span class="nb">kill</span> -QUIT <span class="sb">`</span>cat <span class="nv">$php_fpm_PID</span><span class="sb">`</span>

		wait_for_pid removed <span class="nv">$php_fpm_PID</span>

		<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$try</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34; failed. Use force-quit&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">else</span>
			<span class="nb">echo</span> <span class="s2">&#34; done&#34;</span>
		<span class="k">fi</span>
	<span class="p">;;</span>

	force-quit<span class="o">)</span>
		<span class="nb">echo</span> -n <span class="s2">&#34;Terminating php-fpm &#34;</span>

		<span class="k">if</span> <span class="o">[</span> ! -r <span class="nv">$php_fpm_PID</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34;warning, no pid file found - php-fpm is not running ?&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">fi</span>

		<span class="nb">kill</span> -TERM <span class="sb">`</span>cat <span class="nv">$php_fpm_PID</span><span class="sb">`</span>

		wait_for_pid removed <span class="nv">$php_fpm_PID</span>

		<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$try</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34; failed&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">else</span>
			<span class="nb">echo</span> <span class="s2">&#34; done&#34;</span>
		<span class="k">fi</span>
	<span class="p">;;</span>

	restart<span class="o">)</span>
		<span class="nv">$0</span> stop
		<span class="nv">$0</span> start
	<span class="p">;;</span>

	reload<span class="o">)</span>

		<span class="nb">echo</span> -n <span class="s2">&#34;Reload service php-fpm &#34;</span>

		<span class="k">if</span> <span class="o">[</span> ! -r <span class="nv">$php_fpm_PID</span> <span class="o">]</span> <span class="p">;</span> <span class="k">then</span>
			<span class="nb">echo</span> <span class="s2">&#34;warning, no pid file found - php-fpm is not running ?&#34;</span>
			<span class="nb">exit</span> <span class="m">1</span>
		<span class="k">fi</span>

		<span class="nb">kill</span> -USR2 <span class="sb">`</span>cat <span class="nv">$php_fpm_PID</span><span class="sb">`</span>

		<span class="nb">echo</span> <span class="s2">&#34; done&#34;</span>
	<span class="p">;;</span>

	*<span class="o">)</span>
		<span class="nb">echo</span> <span class="s2">&#34;Usage: </span><span class="nv">$0</span><span class="s2"> {start|stop|force-quit|restart|reload}&#34;</span>
		<span class="nb">exit</span> <span class="m">1</span>
	<span class="p">;;</span>

<span class="k">esac</span>
</code></pre></td></tr></table>
</div>
</div>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">Kevin Jiang</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2017-06-27
        
    </span>
  </p>
  
  <p class="copyright-item">
    <span class="item-title">许可协议</span>
    <span class="item-content"><a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a></span>
  </p>
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="/img/wechat_pay_1242x1242.jpg">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="/img/alipay_600x600.jpg">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/php/">php</a>
          <a href="/tags/centos/">CentOS</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/windows%E4%B8%8Bvirtualbox%E9%87%8Ccentos%E6%8C%82%E8%BD%BD%E5%85%B1%E4%BA%AB%E7%9B%AE%E5%BD%95/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">windows下virtualbox里centos挂载共享目录</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/racket%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83emacs%E9%85%8D%E7%BD%AE/">
            <span class="next-text nav-default">Racket开发环境Emacs配置</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:wenlin1988@126.com" class="iconfont icon-email" title="email"></a>
      <a href="https://www.linkedin.com/in/%E6%96%87%E6%9E%97-%E8%92%8B-0a3204126/" class="iconfont icon-linkedin" title="linkedin"></a>
      <a href="https://github.com/kevindragon" class="iconfont icon-github" title="github"></a>
  <a href="http://kevinjiang.info/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 -
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy;
    2015 -
    2023<span class="heart"><i class="iconfont icon-heart"></i></span><span>Kevin Jiang</span>
    <a href="https://beian.miit.gov.cn/" target="_blank">湘ICP备2022022745号</a>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c99b103c33d1539acf3025e1913697534542c4a5aa5af0ccc20475ed2863603b.js"></script>
  <script type="text/javascript">
    window.MathJax = {
      tex: {
        inlineMath: [['$','$'], ['\\(','\\)']],
        tags: 'ams',
        }
    };
  </script>
  <script type="text/javascript" async src="/lib/mathjax/es5/tex-mml-chtml.js"></script>

<script id="baidu_analytics">
  var _hmt = _hmt || [];
  (function() {
    if (window.location.hostname === 'localhost') return;
    var hm = document.createElement("script"); hm.async = true;
    hm.src = "https://hm.baidu.com/hm.js?b73ff6d4afc4af9e582d8a5dc068bab9";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
  })();
</script>






</body>
</html>
